using System;
using System.Collections.Generic;


namespace Gfw.Models.Account
{
	[Serializable]
	public partial class ActCompanyAccountinformation: IEquatable<ActCompanyAccountinformation>
	{

		#region Private Members

		private string _id; 
		private decimal _profit; 
		private decimal _award;
        private decimal _bonus;
		private DateTime? _settlementdate; 
		private int _version; 		
		#endregion

		#region Constructor

		public ActCompanyAccountinformation()
		{
			_id = String.Empty; 
			_profit = 0; 
			_award = 0;
            _bonus = 0;
			_settlementdate = null; 
			_version = 0; 
		}
		#endregion // End of Default ( Empty ) Class Constuctor

		#region Public Properties
			
		public virtual string Id
		{
			get
			{ 
				return _id;
			}

			set	
			{	
				if( value == null )
					throw new ArgumentOutOfRangeException("Null value not allowed for Id", value, "null");
				
				if(  value.Length > 40)
					throw new ArgumentOutOfRangeException("Invalid value for Id", value, value.ToString());
				
				_id = value;
			}
		}
			
		public virtual decimal Profit
		{
			get
			{ 
				return _profit;
			}
			set
			{
				_profit = value;
			}

		}
			
		public virtual decimal Award
		{
			get
			{ 
				return _award;
			}
			set
			{
				_award = value;
			}

		}

        public virtual decimal Bonus
        {
            get
            {
                return _bonus;
            }
            set
            {
                _bonus = value;
            }

        }
			
		public virtual DateTime? SettlementDate
		{
			get
			{ 
				return _settlementdate;
			}
			set
			{
				_settlementdate = value;
			}

		}
			
		public virtual int Version
		{
			get
			{ 
				return _version;
			}
			set
			{
				_version = value;
			}

		}
			
				
		#endregion 

		#region Public Functions

		#endregion //Public Functions

		#region IEquatable members

		public virtual bool Equals(ActCompanyAccountinformation other)
		{
			if (other == this)
				return true;
		
			return ( other != null ) &&
				( this._id == other.Id );
				   
		}

		#endregion
		
	}
}
